package com.easyUploader.threadHolder;

/**
 * @author 大忽悠
 * @create 2022/11/1 10:22
 */
public class FileInfoThreadHolder {
    private static final ThreadLocal<String> BUCKET_NAME=new ThreadLocal<>();
    private static final ThreadLocal<Integer> BUCKET_ID=new ThreadLocal<>();

    public static void setBucketId(Integer bucketId){
          BUCKET_ID.set(bucketId);
    }

    public static Integer getBucketId(){
        return BUCKET_ID.get();
    }

    public static void setBucketName(String bucketName){
        BUCKET_NAME.set(bucketName);
    }

    public static String getBucketName(){
        return BUCKET_NAME.get();
    }
}
